package chap3_11;

import java.util.Scanner;

public class Exer3_11_14 {
    public static void main(String[] args) {
        int[]num=new int[5];
        Scanner input =new Scanner(System.in);
        System.out.println("请输入数组中的数：");
        for(int i=0;i<num.length;i++){
            num[i]=input.nextInt();
        }
        for(int j=num.length-1;j>=0;j--){
            System.out.println("颠倒后的第"+(num.length-j)+"位数为"+num[j]);
        }
    }
}
